<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body{
        /* 只有父元素设置了 perspective: px; 
           translateZ才有效果
           z轴越大越往前走越小越往后走 */
            perspective: 300px;
        }
        div{
            width: 200px;
            height: 200px;
            background-color: pink;
           /* xy和2d一样 */
            /* transform: translateX(100px) translateY(100px) translateZ(100px); */
            /* 简写 */
             
        }
    </style>
</head>
<body>
    <div></div>
</body>
</html>